package model.librairie;
 
import java.util.Date;
import java.util.HashSet;
import java.util.Set;

public class Artiste {

    protected int id_artiste;

    protected String nom;

    protected String prenom;

    protected Date dateNaissance;

    protected Date dateDeces;

    protected String sexe;

    protected String bibliographie;

    private Role role;
    
    private Set<Article> listeArticles = new HashSet<Article>(0);

    public Artiste(){
    	
    }
    
    public Artiste(String nom, String prenom,
			Date dateNaissance, Date dateDeces, String sexe,
			String bibliographie, Role role) {
		this.nom = nom;
		this.prenom = prenom;
		this.dateNaissance = dateNaissance;
		this.dateDeces = dateDeces;
		this.sexe = sexe;
		this.bibliographie = bibliographie;
		this.role = role;
	}

	public Artiste(String nom, String prenom) {
		this.nom=nom;
		this.prenom=prenom;
	}

	public void modifierArtiste (  String nom, String prenom,
			Date dateNaissance, Date dateDeces, String sexe,
			String bibliographie, Role role) {
		this.nom = nom;
		this.prenom = prenom;
		this.dateNaissance = dateNaissance;
		this.dateDeces = dateDeces;
		this.sexe = sexe;
		this.bibliographie = bibliographie;
		this.role = role;
    }

	public int getId_artiste() {
		return id_artiste;
	}

	public void setId_artiste(int id_artiste) {
		this.id_artiste = id_artiste;
	}

	public String getNom() {
		return nom;
	}

	public void setNom(String nom) {
		this.nom = nom;
	}

	public String getPrenom() {
		return prenom;
	}

	public void setPrenom(String prenom) {
		this.prenom = prenom;
	}

	public Date getDateNaissance() {
		return dateNaissance;
	}

	public void setDateNaissance(Date dateNaissance) {
		this.dateNaissance = dateNaissance;
	}

	public Date getDateDeces() {
		return dateDeces;
	}

	public void setDateDeces(Date dateDeces) {
		this.dateDeces = dateDeces;
	}

	public String getSexe() {
		return sexe;
	}

	public void setSexe(String string) {
		this.sexe = string;
	}

	public String getBibliographie() {
		return bibliographie;
	}

	public void setBibliographie(String bibliographie) {
		this.bibliographie = bibliographie;
	}

	public Role getRole() {
		return role;
	}

	public void setRole(Role role) {
		this.role = role;
	}
	
	public Set<Article> getListeArticles() {
		return listeArticles;
	}

	public void setListeArticles(Set<Article> listeArticles) {
		this.listeArticles = listeArticles;
	}	

}

